package br.usp.ime.protoc.fujaba;
/*
 * The FUJABA ToolSuite project:
 *
 *   FUJABA is the acronym for 'From Uml to Java And Back Again'
 *   and originally aims to provide an environment for round-trip
 *   engineering using UML as visual programming language. During
 *   the last years, the environment has become a base for several
 *   research activities, e.g. distributed software, database
 *   systems, modelling mechanical and electrical systems and
 *   their simulation. Thus, the environment has become a project,
 *   where this source code is part of. Further details are avail-
 *   able via http://www.fujaba.de
 *
 *      Copyright (C) Fujaba Development Group
 *
 *   This library is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU Lesser General Public
 *   License as published by the Free Software Foundation; either
 *   version 2.1 of the License, or (at your option) any later version.
 *
 *   You should have received a copy of the GNU Lesser General Public
 *   License along with this library; if not, write to the Free
 *   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *   MA 02111-1307, USA or download the license under
 *   http://www.gnu.org/copyleft/lesser.html
 *
 * WARRANTY:
 *
 *   This library is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *   GNU Lesser General Public License for more details.
 *
 * Contact address:
 *
 *   Fujaba Management Board
 *   Software Engineering Group
 *   University of Paderborn
 *   Warburgerstr. 100
 *   D-33098 Paderborn
 *   Germany
 *
 *   URL  : http://www.fujaba.de
 *   email: info@fujaba.de
 *
 */

import java.util.Iterator;
import java.util.NoSuchElementException;

/* <tt>false</tt> if you
 * call <tt>hasNext</tt> . All other funtions throw an exception.
 *
 * @author    $Author: lowende $
 * @version   $Revision: 1.4 $
 * @see       FEmptyListIterator
 */
public class FEmptyIterator implements Iterator
{
   /**
    * No comment provided by developer, please add a comment to improve documentation.
    */
   private static FEmptyIterator iterator;


   /**
    * No comment provided by developer, please add a comment to improve documentation.
    *
    * @return   No description provided
    */
   public static Iterator get()
   {
      if (iterator == null)
      {
         iterator = new FEmptyIterator();
      }
      return iterator;
   }


   /**
    * Constructor for class FEmptyIterator
    */
   FEmptyIterator() { }


   /**
    * @return   false
    */
   public boolean hasNext()
   {
      return false;
   }


   /**
    * @return                         No description provided
    * @throws NoSuchElementException
    */
   public Object next()
   {
      throw new NoSuchElementException();
   }


   /**
    * @throws UnsupportedOperationException
    */
   public void remove()
   {
      throw new UnsupportedOperationException();
   }
}

/*
 * $Log: FEmptyIterator.java,v $
 * Revision 1.4  2004/11/03 13:22:34  lowende
 * Javadoc warnings removed.
 *
 */
